package com.zh.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zh.blog.dto.PhotoAlbumBackDto;
import com.zh.blog.model.PhotoAlbum;
import com.zh.blog.vo.ConditionVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 相册映射器
 * @author ZhengHao
 * Created At 2022/8/11.
 **/
@Repository
public interface PhotoAlbumDao extends BaseMapper<PhotoAlbum> {

    /**
     *查询后台相册列表
     * @param current 页码
     * @param size 大小
     * @param conditionVO 条件
     * @return
     */
    List<PhotoAlbumBackDto> listPhotoAlbumBacks(@Param("current") Long current,
                                                @Param("size") Long size,
                                                @Param("condition") ConditionVO conditionVO);
}